import api from '../utils/apiUtils';

// 运费列表
export function getFreight (params) {
  return api.get (`/shop/freight/page`, params);
}

// 新增运费
export function addFreight (params) {
  return api.post (`/shop/freight`, params);
}

// 编辑运费
export function editFreight (id, params) {
  return api.put (`/shop/freight/${id}`, params);
}

//删除运费
export function delFreight (params) {
  return api.delete (`/shop/freight`, params);
}

//运费详情
export function getFreightDetail (id) {
  return api.get (`/shop/freight/${id}`);
}

